package cn.zhaoyuening.leasecloud.common.domain;

import java.io.Serializable;

/**
 * Created by Buynow on 2017/6/30.
 * 设备运行模式
 */
public class Mode implements Serializable {
    private Long id;
    //运行时间内单价
    private Double price;
    //mode name
    private String name;
    //mode 所属设备
    private Device device;
    //开关信息 记录8个开关信息
    private Byte switch1 = 0;
    private Byte switch2 = 0;
    private Byte switch3 = 0;
    private Byte switch4 = 0;
    private Byte switch5 = 0;
    private Byte switch6 = 0;
    private Byte switch7 = 0;
    private Byte switch8 = 0;

    public Mode() {
    }

    public Mode(Long id, Double price, String name, Device device) {
        this.id = id;
        this.price = price;
        this.name = name;
        this.device = device;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Device getDevice() {
        return device;
    }

    public void setDevice(Device device) {
        this.device = device;
    }


    public Byte getSwitch1() {
        return switch1;
    }

    public void setSwitch1(Byte switch1) {
        this.switch1 = switch1;
    }

    public Byte getSwitch2() {
        return switch2;
    }

    public void setSwitch2(Byte switch2) {
        this.switch2 = switch2;
    }

    public Byte getSwitch3() {
        return switch3;
    }

    public void setSwitch3(Byte switch3) {
        this.switch3 = switch3;
    }

    public Byte getSwitch4() {
        return switch4;
    }

    public void setSwitch4(Byte switch4) {
        this.switch4 = switch4;
    }

    public Byte getSwitch5() {
        return switch5;
    }

    public void setSwitch5(Byte switch5) {
        this.switch5 = switch5;
    }

    public Byte getSwitch6() {
        return switch6;
    }

    public void setSwitch6(Byte switch6) {
        this.switch6 = switch6;
    }

    public Byte getSwitch7() {
        return switch7;
    }

    public void setSwitch7(Byte switch7) {
        this.switch7 = switch7;
    }

    public Byte getSwitch8() {
        return switch8;
    }

    public void setSwitch8(Byte switch8) {
        this.switch8 = switch8;
    }
}
